package com.xfdmao.gate.feign;

import com.xfdmao.gate.feign.impl.UserFeignImpl;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by fier on 2017/11/26.
 */
@FeignClient(value="fcat-user", fallback = UserFeignImpl.class)
public interface UserFeign {

    @RequestMapping(value = "/",method = RequestMethod.GET)
    String getHome();

    @RequestMapping(value = "/hi", method = RequestMethod.GET)
    String sayHi(@RequestParam(value = "username") String username);
}
